Skip to content

OpenConceptLab/ocl_online#841 | A new project starts with OCL Semantic and a suggested Name column, and Save says what's missing - #150

Open
paynejd wants to merge 12 commits into
mainfrom
ocl_online-841-new-project-defaults
Open

paynejd wants to merge 12 commits into
mainfrom
ocl_online-841-new-project-defaults

Conversation

@paynejd

@paynejd paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member

For OpenConceptLab/ocl_online#841

A first project starts ready to match, and Save says what's missing. Until now a new project had no algorithm selected, a sheet whose names sit under Diagnosis or Procedure had no column mapped to Name, and Save & Close was off without saying why.

What changes

  • OCL Semantic is selected when you choose a target release that supports semantic search. If the release doesn't support it, nothing is selected, as before. Once you add or remove an algorithm, your choice stays. Saved projects and copies keep the algorithms they have.
  • Diagnosis, Condition, Procedure, Drug and Medication headers are suggested as Name, when the clinical word is the last one ("Primary diagnosis") and no other header has "name", "term", "test" or "description". "Diagnosis Date", "Drug Dose" and "Age at diagnosis" aren't suggested.
  • A date header is never suggested as Name. "Test Date" was, until now.
  • Saving needs a column mapped to Name. Without one, the save is refused with "Missing required column mapping: Name." To require another column, add it to REQUIRED_COLUMNS.
  • Save & Close says what's missing instead of being off. One message names every missing field, in the form's order and with the form's labels: "Missing required field: Upload file." for one, "Missing required fields: Name, Upload file, Repository, Version." for several. A missing version is named there too. Repository is named only when the version is missing as well, since a save needs only the version. Name, Repository and Version show their error state while they're empty after a refused save. Upload file has a star.
  • The OCL AI Assistant box in the AutoMatch dialog takes its default even if you open the dialog before the project's history has loaded. If you've changed the box by then, your choice stays.

Saved projects without a Name column open and work as before, and autosave is never refused for these reasons: decisions, notes, runs and settings changes keep saving. Only pressing Save asks for the column. A refused Save no longer drops an autosave that was waiting.

Also fixed: an algorithm picked while the releases were still loading disappeared when they arrived. The update worked on the list from before the pick.

Pieces used: the message is the Mapper's own error message, the one it already showed for a missing version (the page's MUI Snackbar with an Alert). It was drawn with the rows table, so nothing showed before a file was uploaded. Now the page draws it. The fields' error state is their own MUI TextField one, as Version had: RepoSearchAutocomplete takes an error prop for it. The star is the form's required mark. The texts are in all four languages, with singular and plural.

Merging with #147: both change the line that lists ConfigurationForm's props (this one renames showTargetRepoVersionError to showRequiredErrors, #147 adds two). Whichever merges second fixes that one line. The other open Mapper PRs merge cleanly with this one.

Checked: npm run test:all and ESLint pass. I also went through it in Chrome against a mock API:

  • the default algorithm, release changes, a removed default staying removed, a pick before and during loading, and the suggestions
  • each refused save, from the form and from the toolbar, at 1440 and 390, and the fields' error state
  • a saved project without a Name column: Save refused, and the waiting autosave kept
  • the AI box with a slow history: never matched, last run with and without AI, and changed before the history arrived

To check after the deploy: start a new project, choose ICD-11 and its newest release, and press Save & Close: it asks for the file. Upload a sheet with a Diagnosis column: OCL Semantic is selected and Diagnosis is mapped to Name. Clear that mapping and save: it asks for Name.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7

paynejd and others added 12 commits December 3, 2026 01:10
…c when the release supports it, and clinical headers are suggested as Name

- Choosing a release with semantic search selects OCL Semantic in a new
  project, until someone adds or removes an algorithm. Saved and copied
  projects keep their own.
- The change applies to the algorithms as they are when the releases have
  loaded, so a pick made while they load is no longer lost.
- A header that ends in Diagnosis, Condition, Procedure, Drug or Medication is
  suggested as Name.
- The form says when no column is mapped to Name. Saving still works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
… is never suggested as Name

A header such as Test Date took the Name suggestion from the Diagnosis
column beside it, and Date of Diagnosis ended in a clinical word.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…eps the same one

The clinical words only fill the gap: Diagnosis Description still wins over
Diagnosis. Date/Time counts as a date header too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…n, and other headers split as before

Test (Date/Time) is a date header. Drug Name/Strength no longer takes Name
from Generic Drug Name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…rged into them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…ined by a slash isn't a name either

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…olumn mapping is missing

The line under the column table is gone. A save by hand without a column mapped
to Name is refused with "Missing required column mapping: Name.", and one
without an owner, a name or a file with "Missing required field: ...". Save &
Close stays on, so it can say so, and Upload file has a star. Autosave isn't
held to it: a saved project keeps its work, and a refused save leaves a pending
autosave to run. The page's message shows before a file is uploaded too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…nt box takes its default when the project's history arrives

Opened before the history had loaded, the box stayed off. It now takes the
project's default then, unless the user has already changed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…ge, a name of spaces is missing, and the AI box takes its default when access arrives late

An autosave refused for a missing version no longer replaces the message a
save by hand just showed. A project name of only spaces counts as missing.
The AutoMatch dialog's box also takes its default when the user's access to
the OCL AI Assistant arrives while it's open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…issing now, not an older message

An autosave is still refused only for a missing version, but its message now
lists everything missing at that moment, as a save by hand's does. It no
longer keeps an earlier message that may have gone out of date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
… in the form's order, and the empty fields show their error

"Missing required field: Upload file." for one, and "Missing required fields:
Name, Upload file, Repository, Version." for several, in the form's order. A
missing version is named there too, not in a sentence of its own, and
Repository is named only when the version is missing as well: a save needs
only the version. After a refused save, Name, Repository and Version show
their error while they're empty, until a save goes through. Upload file keeps
its star.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
…th a save that went through

It ended when a save by hand passed its checks, so a save that then failed
ended it too early, and an autosave that went through didn't end it at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AaZ4qXAMRFx7hxhuoQgUf7
@paynejd
paynejd requested a review from snyaggarwal December 5, 2026 03:23
@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 1 (codex-cli 0.171.0, commit 92cb1ff)

Two P1 findings: one fixed, one not changed.

  • F1.1 (P1), a Test Date column takes Name from Diagnosis: fixed in 238cdd4. A date header is never suggested as Name.
  • F1.2 (P1), the toolbar can save while the line about the Name column isn't on screen: not changed. The line belongs to the form, and saving without a Name column was allowed on purpose then. Since ec78bc2 every save by hand asks for a Name column, so the toolbar's Save says so too.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "full",
  "commit": "92cb1ff",
  "verdict": "findings",
  "prior": [],
  "findings": [
    {
      "id": "F1.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 28,
      "claim": "A Test Date column takes the Name suggestion away from a Diagnosis column.",
      "scenario": "Upload a sheet with Test Date and Diagnosis headers. The test token outranks diagnosis, so the form maps Test Date to Name and leaves Diagnosis unmapped. AutoMatch receives dates as names, and the no-Name warning stays hidden.",
      "action": "Give an unambiguous clinical name header priority over date headers. Add a regression test for Test Date alongside Diagnosis.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F1.2",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/ConfigurationForm.jsx",
      "line": 558,
      "claim": "The toolbar can save a project while the no-Name warning is absent.",
      "scenario": "In a new project, select a target release and upload a sheet with only Local Code and Group. Close Configure before scrolling to Field Configuration, then use the toolbar Save button. Closing Configure removes the only warning, and the save proceeds without showing it.",
      "action": "Surface the nonblocking warning in the save flow when Configure is closed, and test saving from the toolbar with no Name mapping.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 2 (codex-cli 0.171.0, commit 238cdd4)

Two P1 findings, both fixed.

  • F2.1 (P1), Test Date/Time is still suggested: fixed in 6470cb1.
  • F2.2 (P1), Diagnosis takes Name from Diagnosis Description: fixed in 6470cb1. The clinical words rank last.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "verify",
  "commit": "238cdd46fef94c4765f73a36fee8d8023a10661b",
  "verdict": "findings",
  "prior": [
    {"id": "F1.1", "status": "resolved"},
    {"id": "F1.2", "status": "unresolved"}
  ],
  "findings": [
    {
      "id": "F2.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 42,
      "claim": "A date/time header can still take the only Name suggestion from Diagnosis.",
      "scenario": "Upload a sheet with timestamps under `Test Date/Time` and diagnosis names under `Diagnosis`. The date check misses `date/time` because the tokenizer leaves the slash intact. The `test` rule wins, so AutoMatch receives timestamps as names and the form shows no missing-Name warning.",
      "action": "Recognize date/time headers in the date check and add a test that gives Name to `Diagnosis` for this pair.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F2.2",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 29,
      "claim": "The new clinical keywords can displace an existing Name suggestion for the column containing the names.",
      "scenario": "Upload a sheet with ICD-10 codes such as `E11.9` under `Diagnosis` and the corresponding text under `Diagnosis Description`. The base branch suggests Name for `Diagnosis Description`. This branch gives Name to `Diagnosis` instead, so AutoMatch receives the codes as names.",
      "action": "Keep `description` ahead of the new clinical keywords and test that `Diagnosis Description` keeps the Name suggestion when both headers are present.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex review, pass 3 (codex-cli 0.171.0, commit 6470cb1)

Two P1 findings, both fixed.

  • F3.1 (P1), splitting headers on slashes moves Name between Drug Name/Strength and Generic Drug Name: fixed in 7566e25. Headers split as they did before.
  • F3.2 (P1), Test (Date/Time) is still suggested: fixed in 7566e25.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "verify",
  "commit": "6470cb1",
  "verdict": "findings",
  "prior": [
    {"id": "F1.1", "status": "resolved"},
    {"id": "F1.2", "status": "resolved"},
    {"id": "F2.1", "status": "regressed"},
    {"id": "F2.2", "status": "resolved"}
  ],
  "findings": [
    {
      "id": "F3.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 34,
      "claim": "Splitting on slashes changes which column receives an existing Name suggestion.",
      "scenario": "Upload a sheet with `Drug Name/Strength` followed by `Generic Drug Name`. The base branch maps `Generic Drug Name` to Name. HEAD maps `Drug Name/Strength` instead, so AutoMatch uses values such as `amoxicillin 500 mg` in place of the generic name.",
      "action": "Scope slash handling to date detection and keep the previous delimiters for existing suggestion rules. Add a regression test for the two drug columns.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "F3.2",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 42,
      "claim": "A date word next to a parenthesis can still let a timestamp column take Name from a diagnosis column.",
      "scenario": "Upload a sheet with `Test (Date/Time)` and `Diagnosis`. The date check misses `(date`, so `test` outranks `diagnosis`. The form maps timestamps to Name and leaves Diagnosis unmapped.",
      "action": "Recognize date words next to punctuation in the date check. Add `Test (Date/Time)` to the date-column regression test.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Simplification review (fresh Claude subagent, commit 7566e25)

Four items: two applied in cd64a31, two kept as they are.

  • S1, drop the date rule: kept. It fixes P1 findings F1.1, F2.1 and F3.2.
  • S2, keep only one of algosChosenRef and projectIdRef in the default's condition: kept both. A new project that has been saved has an id, but nobody may have chosen its algorithms yet.
  • S3, two overlapping tests of getAlgosForRelease: merged.
  • S4, two overlapping tests of the clinical words: merged.

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits 6470cb1..cd64a31

One P1 and two P2 findings: two fixed, one accepted. The fix is cda51bd, one line and two test cases.

  • FC.1 (P1), "Code/ID - Diagnosis" is suggested as Name: fixed in cda51bd for the clinical words only, so no other suggestion changes.
  • FC.2 (P2), a decomposed accent in "Daté" counts as a date word: accepted. It only withholds a suggestion, and the person can still choose Name.
  • FC.3 (P2), the merged tests lost the case of a chosen algorithm without a default: the case is back in cda51bd.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "cd64a31",
  "verdict": "findings",
  "prior": [
    {"id": "F3.1", "status": "regressed"},
    {"id": "F3.2", "status": "regressed"}
  ],
  "findings": [
    {
      "id": "FC.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 33,
      "claim": "Removing slash splitting lets code columns take the clinical Name suggestion.",
      "scenario": "Upload a sheet with `ICD-10 Code/ID - Diagnosis` followed by `Primary Diagnosis`. At `6470cb1`, the code column was excluded and `Primary Diagnosis` got Name. At `cd64a31`, `Code/ID` is a single token, so the first column takes Name and the diagnosis text is left unmapped.",
      "action": "Preserve legacy Name matching, then use slash-aware tokens and code exclusions when evaluating clinical fallback candidates.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "FC.2",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 41,
      "claim": "The date check gives different Name suggestions for canonically equivalent headers.",
      "scenario": "A column holding test names is headed `Test Name (Daté)`. With a decomposed accent, the regex sees `Date` followed by a combining mark and suppresses Name. The same visible header with a precomposed `é` still gets Name, and both forms got Name at `6470cb1`.",
      "action": "Use Unicode-aware word boundaries that treat combining marks as part of a word, and test both encodings of the header.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "FC.3",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/__tests__/selectedAlgos.test.js",
      "line": 93,
      "claim": "The test merge removed coverage for keeping a chosen algorithm when no default is supplied.",
      "scenario": "A user selects Search and then chooses a semantic-enabled release. The caller supplies the existing selection with no default. The remaining tests pass even if that combination clears the selection, because they cover an empty list without a default and a populated list with a default.",
      "action": "Add the no-default call to the existing test for retaining a chosen algorithm.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits cd64a31..cda51bd

One P2 finding, accepted.

  • FC.1 (P2), "Specimen Code/ID - Procedure" takes Property: SYSTEM from Specimen type: accepted. main suggests the same for that sheet, and this PR doesn't change suggestions other than Name.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "cda51bd",
  "verdict": "findings",
  "prior": [
    {"id": "FC.1", "status": "regressed"},
    {"id": "FC.2", "status": "unresolved"},
    {"id": "FC.3", "status": "resolved"}
  ],
  "findings": [
    {
      "id": "FC.1",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/columnSuggestions.js",
      "line": 36,
      "claim": "The slash-aware code check removes the clinical Name candidate but lets the code column take a different field from the intended column.",
      "scenario": "Upload a LOINC sheet with `Specimen Code/ID - Procedure`, `Specimen type`, and `Procedure Name`, in that order. The parent commit suggests `Property: SYSTEM` for `Specimen type`. This commit suggests it for the identifier column and leaves `Specimen type` unmapped.",
      "action": "Exclude slash-delimited code headers from fallback field rules while preserving Name suggestions based on the original Name keywords. Add a test with both the code column and the intended SYSTEM column.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits cda51bd..b827b4d

One P1 and three P2 findings: three fixed in 4bd367b, one declined.

  • FC.1 (P1), an autosave refused for a missing version replaced the fuller message a save by hand had just shown: fixed in 4bd367b, and the fix done better in 7458b29.
  • FC.2 (P2), a project name of only spaces wasn't missing: fixed in 4bd367b.
  • FC.3 (P2), Name isn't named before a file is uploaded: declined. Without a file there are no columns to map.
  • FC.4 (P2), the AI box missed its default when access to the assistant arrived while the dialog was open: fixed in 4bd367b.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "b827b4d",
  "verdict": "findings",
  "prior": [],
  "findings": [
    {
      "id": "FC.1",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 1805,
      "claim": "A pending autosave can overwrite the combined manual-save refusal.",
      "scenario": "On a saved project without a Name mapping, clear the target repository, close settings to queue an autosave, and click toolbar Save just before the autosave fires. The manual refusal lists both problems, but the autosave immediately replaces it with the target-version message and hides the Name requirement.",
      "action": "Preserve the manual validation message when the pending autosave is refused for a missing target version.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "FC.2",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 1784,
      "claim": "A project name containing only whitespace bypasses required-field validation.",
      "scenario": "With an owner, a file mapped to Name, and a target version selected, replace the project name with spaces and click Save & Close. The client sends the request with a blank name and never shows the required-field message.",
      "action": "Trim the project name when checking whether the required field is empty.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "FC.3",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 1787,
      "claim": "The combined refusal omits the required Name mapping before a file is uploaded.",
      "scenario": "Click Save & Close on a new project with no file and no column mappings. The message lists the missing file and any other missing fields, but omits “Missing required column mapping: Name.”",
      "action": "Include missing required column mappings in manual-save validation even when there is no file.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "FC.4",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 3390,
      "claim": "The AutoMatch checkbox misses the project default if AI access refreshes after project history arrives.",
      "scenario": "A user whose cached permissions lack AI access opens AutoMatch before the history and permission requests finish. The history shows that the last run used AI. If history arrives first, the default is skipped while the checkbox is hidden. When the permission refresh reveals the checkbox, it appears unchecked even though the user has never changed it.",
      "action": "Reevaluate the default when AI access becomes available while the dialog is open, using the existing guard for a user change.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits b827b4d..4bd367b

One P2 finding, fixed.

  • FC.5 (P2), a refused autosave could keep a message from a save by hand that had gone out of date: fixed in 7458b29. Every refusal now names what's missing at that moment.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "4bd367b",
  "verdict": "findings",
  "prior": [
    {"id": "FC.1", "status": "regressed"},
    {"id": "FC.2", "status": "resolved"},
    {"id": "FC.4", "status": "resolved"}
  ],
  "findings": [
    {
      "id": "FC.5",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 1806,
      "claim": "A refused autosave can retain an outdated manual-save alert and omit the reason the autosave failed.",
      "scenario": "On an existing project with a target version selected, clear the project name and click Save & Close. Fill in the name, clear the target repository, and close Configure before the alert expires. When autosave runs, Configure reopens with Version marked invalid. The toast still says Name is missing and omits the version error.",
      "action": "Preserve the manual-save alert only while its errors match the current validation state. Otherwise show the reason the autosave was refused.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits 4bd367b..7458b29

One P2 finding, accepted.

  • FC.1 (P2), a message replaced while it shows keeps the first one's timer: accepted. That's true of every message this page shows, and it takes a change within a few seconds.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "7458b29",
  "verdict": "findings",
  "prior": [
    {
      "id": "FC.5",
      "status": "resolved"
    }
  ],
  "findings": [
    {
      "id": "FC.1",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 1807,
      "claim": "The updated autosave refusal inherits the manual refusal's dismissal timer and can disappear before the user reads it.",
      "scenario": "A manual save is refused for a missing version. About three seconds later, the user clears the project name and closes configuration. The five-second autosave then adds the missing name to the open snackbar just before the original eight-second timer dismisses it.",
      "action": "Key the snackbar by the refusal message so a changed message starts a fresh dismissal timer.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits 7458b29..0a52a37

One P1 and one P2 finding: one fixed, one declined.

  • FC.2 (P1), the fields' error state ended when a save by hand passed its checks, not when a save went through: fixed in 3770598. It ends with any save that goes through, autosave included.
  • FC.3 (P2), an empty Repository isn't red when the version is set: declined. A save needs only the version, and a field is red only for what the message names.
findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "0a52a37",
  "verdict": "findings",
  "prior": [
    {
      "id": "FC.1",
      "status": "unresolved"
    }
  ],
  "findings": [
    {
      "id": "FC.2",
      "severity": "P1",
      "tag": null,
      "file": "src/components/map-projects/MapProject.jsx",
      "line": 1816,
      "claim": "Starting a manual save clears required-field errors before the server responds. A successful autosave leaves the flag set.",
      "scenario": "Clear Name and click Save, then enter a new name. If the manual retry fails on the server, clearing Name again leaves it unmarked even though no save succeeded. If you instead close settings and let the changed name autosave successfully, reopening settings and clearing Name immediately shows the old error state.",
      "action": "Clear showRequiredErrors in the successful response branch shared by manual saves and autosaves.",
      "lines_delta": null,
      "confidence": "high"
    },
    {
      "id": "FC.3",
      "severity": "P2",
      "tag": null,
      "file": "src/components/map-projects/ConfigurationForm.jsx",
      "line": 278,
      "claim": "The empty Repository field only turns red when Version is also empty. The version condition applies to the toast’s field list.",
      "scenario": "Open a saved project whose version loads while its repository details request fails. Clear Name and click Save. The toast correctly names Name alone, but the empty Repository field stays unmarked after the refusal.",
      "action": "Use showRequiredErrors and the repository field’s own emptiness to set its error state. Keep the version condition in the toast’s field list.",
      "lines_delta": null,
      "confidence": "high"
    }
  ]
}

@paynejd

paynejd commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Codex check of commits 0a52a37..3770598

Clean: FC.2 is resolved, and nothing new.

findings.json
{
  "reviewer": "codex-cli 0.171.0",
  "perspective": "defects",
  "mode": "final",
  "commit": "3770598",
  "verdict": "clean",
  "prior": [
    {
      "id": "FC.2",
      "status": "resolved"
    }
  ],
  "findings": []
}

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant